package org.koon;

import java.util.HashMap;
import java.util.Map;

public class KoonFile {

    private String fileName;
    private String name;
    private byte[] data;
    private int size;

    public String getFileName() {
        return fileName;
    }

    public void setFileName(String fileName) {
        this.fileName = fileName;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public byte[] getData() {
        return data;
    }

    public void setData(byte[] data) {
        this.data = data;
    }

    public int getSize() {
        return size;
    }

    public void setSize(int size) {
        this.size = size;
    }

    public static class Header {
        public static final String Content_Disposition = "Content-Disposition".toLowerCase();
        public static final String Content_Type = "Content-Type".toLowerCase();
        private String contentDisposition = "form-data";
        private String name;
        private String filename;
        private String contentType;

        private Map<String, String> map = new HashMap<>();

        public String getContentDisposition() {
            return contentDisposition;
        }

        public String getContentType() {
            return contentType;
        }

        public String getFilename() {
            return filename;
        }

        public Map<String, String> getMap() {
            return map;
        }

        public String getName() {
            return name;
        }

        public void setContentDisposition(String contentDisposition) {
            this.contentDisposition = contentDisposition;
        }

        public void setContentType(String contentType) {
            this.contentType = contentType;
        }

        public void setFilename(String filename) {
            this.filename = filename;
        }

        public void setMap(Map<String, String> map) {
            this.map = map;
        }

        public void setName(String name) {
            this.name = name;
        }
    }
}
